<?php
declare (strict_types=1);

namespace app\admin\model\promotion;

use app\common\model\BaseModel;
use app\user\model\user\admin\Account;

/**
 * Class PromotionTuanData
 *
 * @package app\admin\model\promotion
 */
class PromotionTuanData extends BaseModel
{
    /**
     * 表名
     *
     * @var string
     */
    protected $name = 'promotion_tuan_data';

    /**
     * 时间显示格式
     *
     * @var string
     */
    protected $dateFormat = 'Y-m-d H:i';

    /**
     * 拼团发起人
     * Author: Martinsun <syh@sunyonghong.com>
     * Date: 2021/4/23
     *
     * @return \think\model\relation\BelongsTo
     */
    public function user()
    {
        return $this->belongsTo(Account::class, 'user_id', 'id');
    }

}